﻿<!DOCTYPE HTML>
<html>
<head th:include="fragments/_header :: _head('用户流水')"></head>
<body>
<div class="page-container">
	<div class="cl pd-5 bg-1 bk-gray">
		<span class="l">
		</span>
		<span class="r">共有数据：<strong th:text="${page.total}">0</strong> 条</span>
	</div>
	<div class="text-c mt-20">
		<form action="/account/list" id="searchForm">
			<input type="hidden" name="page" id="page" th:value="${page.current}">
			<select name="type">
				<option value="0" th:selected="${type==0}">全部</option>
				<option value="1" th:selected="${type==1}">充值</option>
				<option value="2" th:selected="${type==2}">购买</option>
				<option value="3" th:selected="${type==3}">提现</option>
				<option value="4" th:selected="${type==4}">中奖</option>
			</select>
			<button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
		</form>
	</div>
	<div class="dataTables_wrapper no-footer  mt-20">
		<table class="table table-border table-bordered table-bg">
			<thead>
				<tr>
					<th scope="col" colspan="5">流水列表</th>
				</tr>
				<tr class="text-c">
					<th width="50">用户ID</th>
					<th width="150">用户名</th>
					<th width="150">数量</th>
					<th width="100">类型</th>
					<th width="130">时间</th>
				</tr>
			</thead>
			<tbody>
				<tr class="text-c"  th:each="history:${page.records}">
					<td th:text="${history.userId}">history</td>
					<td th:text="${history.username}">history</td>
					<td th:text="${history.count}">history</td>
					<td th:if="${history.type==1}">充值</td>
					<td th:if="${history.type==2}">购买</td>
					<td th:if="${history.type==3}">提现</td>
					<td th:if="${history.type==4}">中奖</td>
					<td  th:text="${#dates.format(history.timestamp, 'yyyy-MM-dd HH:mm:ss')}">2014-6-11 11:11:42</td>
				</tr>
			</tbody>
		</table>
		<div th:replace="fragments/_page :: pageBar(${page})"></div>
		<div th:replace="fragments/_page :: pagination(${page})"></div>
	</div>
</div>
<div th:include="fragments/_footer :: _footer"></div>
<script th:replace="fragments/_page :: pageScript"></script>
<script type="text/javascript" src="/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
</body>
</html>